package com.weifangfirecontrolformal.weifangfirecontrolformal.web.web.internetofthings.firefightingiot;

import cn.hutool.json.JSONObject;

import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseController;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.annotaion.Action;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.internetofthings.firefightingiot.EnterpriseService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @Author: xulumin
 * @ClassName: DeviceSwitchController
 * @Date: Created in 9:23 2024.03.26
 * @Description: 一企一档大屏查询设备报警
 */

@Action
@RequestMapping(value = "enterprise")
public class EnterpriseController extends BaseController {
    @Resource
    private EnterpriseService enterpriseService;


    /**
     * @Author: xulumin
     * @ClassName: DeviceSwitchController
     * @Date: Created in 9:23 2024.03.26
     * @Description: 一企一档大屏查询设备报警
     */
    @GetMapping("getAreaDeviceInfo")
    public RespEntity getAreaDeviceInfo(@RequestBody(required = false)JSONObject jsonObject) {
        return enterpriseService.getAreaDeviceInfo(jsonObject);
    }
}
